package com.nageoffer.jobtrain.projects.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nageoffer.jobtrain.projects.dao.entity.UserContestDO;
import com.nageoffer.jobtrain.projects.dto.resp.UserContestRespDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户报名竞赛数据持久层
 * author：唐晨
 */
public interface UserContestMapper extends BaseMapper<UserContestDO> {
    List<UserContestRespDTO> listEnrollContest(@Param("username") String username);

    List<UserContestRespDTO> pageListEnrollContest(@Param("username") String username,
                                                   Page<UserContestRespDTO> page);
}
